﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VLine.InputDto._20220219
{
    /// <summary>
    ///  保存店铺动态点赞
    /// </summary>
    public class InputStoreNewsStar
    {
        /// <summary>
        ///  登录用户编码
        /// </summary>
        [Required(ErrorMessage = "登录用户编码必填项！")]
        public string userid { get; set; }
        /// <summary>
        ///  店铺动态id
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请正确传递店铺动态id！")]
        public int newsID { get; set; }
        /// <summary>
        ///  点赞类别 【0=取消点赞，1=加点赞】
        /// </summary>
        [Required]
        [RegularExpression("^([0,1])$", ErrorMessage = "请正确输入状态：0=取消点赞，1=加点赞")]
        public int status { get; set; }
    }
}